package com.ins1st.modules.xs.entity;

import java.io.Serializable;
import java.util.Date;

import org.apache.ibatis.type.Alias;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ins1st.util.Jackson;

@Alias("Student")
public class Student implements Serializable {

	private static final long serialVersionUID = 2331951923931713804L;

	// ID
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	// 用户名称
	private String name;
	// 年龄
	private Integer age;
	// 注册日期
	private Date ctime;

	// 班级ID
	private Long clazzId;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public Long getClazzId() {
		return clazzId;
	}

	public void setClazzId(Long clazzId) {
		this.clazzId = clazzId;
	}

	@Override
	public String toString() {
		return Jackson.me().toJson(this);
	}

}
